package cn.jarlen.jwt.tools.menu;

import android.content.Context;
import android.widget.Toast;

import cn.jarlen.jwt.tools.device.DeviceUtils;
import cn.jarlen.jwt.tools.utils.LittleUtils;

/**
 * @author jarlen
 * Create by 2024/5/11 15:21
 */
public class PhoneRead implements IMenuProcess {

    @Override
    public void onExecute(Context context) {
        String mobilePhone = DeviceUtils.getMobilePhoneByAndroidApi(context);

        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append("查询手机号结果:").append(LittleUtils.checkEmpty(mobilePhone));

        Toast.makeText(context, stringBuilder, Toast.LENGTH_LONG).show();
    }
}
